from po.base import Base
from selenium.webdriver.common.by import By

class Page3(Base):
    #定位器
    list_loc = (By.XPATH, '/html/body/div/div/section/aside/ul/li/ul/li[13]/a')
    name_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/form/div[1]/div/div/div/input')
    select_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/form/div[2]/div[1]/div/div/button')

    def list(self):
        self.click(self.list_loc)

    def name(self):
        self.send_keys(self.name_loc,'3')

    def select(self):
        self.click(self.select_loc)